package com.woniuxy.store.client.param.orderParam;

import lombok.Data;
import utils.EnumValue;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@Data
public class CreatePayOrderParams {
    @Min(1)
    @NotNull
    private Integer memberId;
    @Min(1)
    @NotNull
    private Integer tableId;
    @Min(1)
    @NotNull
    private Integer storeId;
    @NotNull
    @Min(1)
    private Integer tableUserdRecordId;
    @NotNull
    @Min(1)
    private Integer ifUseCoupon;
    @EnumValue(strValues = {"ONLINE","OFFLINE"})
    @NotNull
    private String payWay;
    //用户用的优惠券的ID
    private List<Integer> memberCouponId;
    //    //用户用的优惠券金额
//    private BigDecimal couponDeduction;
    //用户折扣
    private Double memberBenefits;
    //设置总餐位费
    @Min(0)
    private BigDecimal AllTableFee;
    //其他费用（是否是包房）
    @Min(0)
    private BigDecimal ortherFee;
}
